package com.vpx.server.bean.info.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.vpx.server.framework.base.Base;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author lihui
 * @title: vpx
 * @module system
 * @description: 菜单信息
 * @date 2021/9/16 11:17
 */
@Getter
@Setter
public class MenuTreeInfo extends Base {
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @ApiModelProperty(value = "父级栏目ID -1为根")
    private Long parentId;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "编号")
    private String code;

    @ApiModelProperty(value = "路径")
    private String path;

    @ApiModelProperty(value = "路由")
    private String router;

    @ApiModelProperty(value = "路由组件")
    private String component;

    @ApiModelProperty(value = "排序号")
    private Integer sortNum;

    /**
     * 类型（FOLDER:文件夹, MENU:菜单，"BUTTON:按鈕）
     */
    private String menuType;

    @ApiModelProperty(value = "子节点")
    private List<MenuTreeInfo> child;

    /**
     * --------按钮的数据-----------
     */
    @ApiModelProperty(value = "请求URL")
    private String operateUrl;

    @ApiModelProperty(value = "是否有权限")
    private boolean hasAuth;

    //@ApiModelProperty(value = "菜单操作按钮")
    //private List<MenuOperateInfo> operators;

}
